<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Welcome Alpa web detail</title>
    <link href="/static/css/reset.css" media="screen" rel="stylesheet" type="text/css" />
    <link href="/static/css/alpha.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body >
<div class="bar_top">
    <div class="main_bar_top">
        <ul>
            <li><a href="#">TRANG CHỦ</a></li>
            <li class="active"><a href="#">BẢN ĐỒ</a></li>
            <li><a href="#">DIỄN ĐÀN</a></li>
            <li><a href="#">HỖ TRỢ</a></li>
        </ul>
        <div class="block_login"> <div class="left">Chào bạn!</div>
            <div class="txt_center w280 right block_txt_dagnhap">Bạn chưa <a href="#">Đăng Nhập</a> hoặc <a href="#">Đăng Ký</a> </div>
        </div>
    </div>
</div>
<div id="uni_contenner">
    <div id="warpper_header">
        <div class="left w860"> </div>
        <div class="clear">&nbsp;</div>
    </div>
    <div id="warpper_container">
        <div class="containermap box_width_common">
            <div id="col_left">
                <?php
                echo $this->render("default/search.phtml");
                ?>
                <?php echo $this->layout()->content; ?>

        </div>
    </div>
    <div id="warpper_footer"></div>
</div>
<div class="clear">&nbsp;</div>
<div class="bar_top">
    <div class="main_bar_bottom">
        <ul>
            <li><a href="#">    <span>Advertise</span></a></li>
            <li class="active"><a href="#"> <span>About</span>	</a></li>
            <li><a href="#"> <span>Sitemap</span></a></li>
            <li><a href="#"> <span>Get in touch</span></a></li>
            <li><a href="#"> <span>Contact Us</span></a></li>
        </ul>
        <div class="txt_right right">© 2007 - 2012 - All Rights 5Home</div>
    </div>
</div>
<script src="/static/js/lib/jquery.min.js.js" language="javascript"></script>
   <script type="text/javascript">
       $(document).ready(function(){
           $("#_Address").blur(function(){
               $("#Address").val($(this).val()+','+$("#Address").val());
           });
           $("#phuong").blur(function(){
               $("#Address").val($(this).val()+','+$("#Address").val());
           });

            $("#city").change(function(){

                $("#ward").live('change',function(){

                    if($("#ward").find('option:selected').val()=='')
                        $("#Address").val($("#city").find('option:selected').text());
                    else
                        $("#Address").val($("#ward").find('option:selected').text()+','+$("#city").find('option:selected').text());
                });
                $.ajax({
                    url:'/index/getward',
                    dataType:'json',
                    type:"POST",
                    data:{ city:$(this).val()},
                    success:function (data) {
                        $("#ward").html('<option value="">Vui lòng chọn quận/huyện</option>');
                        if(data.length>0){


                        $.each(data,function(i){
                            $("#ward").append('<option value='+data[i].LocationID+'>'+data[i].Name+'</option>');
                        })
                        }else
                            $("#ward").html('<option value="">Vui lòng chọn quận/huyện</option>');
                    }

                });

            }).change();
       })

   </script>
<script type="text/javascript"
        src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDtfNE2NgbJHFsJ4Fuphe3K2S3iLtZz8WQ&sensor=true">
</script>


</body>
</html>
